<SCRIPT type="text/javascript">
	function submitSearchForm(action){
		$("#dictionaryform").attr("action","/${orgi}/assist/dictionary/list.html");
		$("#beginNum").val($("#beginNumShow").val());
		$("#endNum").val($("#endNumShow").val());
		$("#keyword").val($("#show_keyword").val());
		$("#type").val($("#show_type").val());
		$("#action").val(action);
		$("#dictionaryform").submit();
	} 
</SCRIPT>
<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/assist/dictionary/index.html">报表辅助</a></li>
		<li class="bc_ithems">指标字典</li>
	</ul>
	
	<div style="float: right">
		<input style="margin-top: 4px;border: 1px solid #cccccc;height: 14px;padding: 4px;"  size="25"  id="show_keyword" maxlength="30" name="show_keyword" value="${keyword!''}" type="text">
		<select id="show_type">
			<option <#if type??&&type=='measure'>selected="selected"</#if> value="measure">指标</option>
			<option <#if type??&&type=='dim'>selected="selected"</#if> value="dim">维度</option>
		</select>
		<span class="help-inline"></span>
		<span class="btnWrap" style="margin-top:20px;">
			&nbsp;&nbsp;<input type="button" style="padding-top:5px" onclick="$('#beginNumShow').val('1');$('#endNumShow').val('20');submitSearchForm('current');" class="subButtonStyle" value="查询"> 
		</span>
	
	</div>
</div>

<!--<div class="rs_layout_right" style="width:300px;"></div>-->
<div class="rs_layout_center">
	<div class="rs_layout">

		<div class="rs_layout_center">
		
		
			<div class="tableScrollWrap">
				<form id="dictionaryform" action="" method="post"  data-toggle="form"  data-callback="closeR3ArtDialog();">
				<input type="hidden" name="organid" id="organid" value="0">
				<input type="hidden" name="keyword" id="keyword" value="${keyword!''}">
				<input type="hidden" name="type" id="type" value="${type!''}">
				<input type="hidden" id="beginNum" name="beginNum" value="">
				<input type="hidden" id="endNum" name="endNum" value="">
				<input type="hidden" id="action" name="action" value="current">
				<table class="table_style_1">
					<thead>
						<tr>
							<th style="padding-left:20px;"><i class="verMidWrap">指标名称</i><i class="tbArrow"></i></th>
							<th class="minSize"><i class="verMidWrap">指标代码</i><i class="tbArrow"></i></th>
							<th class="minSize"><i class="verMidWrap">所属模型</i><i class="tbArrow"></i></th>
							<th class="minSize"><i class="verMidWrap">创建时间</i><i class="tbArrow"></i></th>
						</tr>
					</thead>
					<tbody>
						
						<#if datalist??>
						<#list datalist as data>
						<tr>
							
							<!-- <td style="padding-left:20px;"><a href="/${orgi}/assist/dictionary/report.html?type=${type!'measure'}&id=${data.id!''}&name=${data.name!''?url}" target="cube" class="report">
								<i class="<#if type?? && type == 'dim'>tabIcon tci-4310<#else>tabIcon tci-430</#if>"></i>${data.name!''}</a></td> -->
							<td style="padding-left:20px;"><a data-width="700" href="/${orgi}/assist/dictionary/dictionarydetail/${type!'measure'}/${data.id!''}.html" data-toggle="ajax" target="report" class="report">
								<i class="<#if type?? && type == 'dim'>tabIcon tci-4310<#else>tabIcon tci-430</#if>"></i>${data.name!''}</a></td>
							<td class="minSize">${data.code}</td>
							<td class="minSize"><a href="/${orgi}/assist/dictionary/report/cube.html?type=${type!'measure'}&id=${data.cube.id!''}&name=${data.name!''?url}" target="_blank">${data.cube.pathName!''}</a></td>
							<td class="minSize">${data.createtime}</td>
						</tr> 
						</#list>
						</#if>
					</tbody>
				</table>
				</form>
			</div>

		</div>
		<div class="rs_layout_bottom toolBar_bottom" style="overflow: hidden">
			<div class="papers_1" style="float:right;line-height:18px;margin:0 10px;">
				<span ><label style="font-size: 13px;">条目&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="text" style="width: 30px;height: 10px;" id="beginNumShow" value="${beginNum!'1'}"/><label style="font-size: 13px;">-</label><input style="width: 30px;height: 10px;" type="text" id="endNumShow" value="${endNum!'20'}"/></span>
				<img class="pageElems" onclick="submitSearchForm('current');" title="查询" alt="查询" src="/assets/images/action_go.gif"/>
				<img class="pageElems" onclick="submitSearchForm('first');" title="首页" alt="首页" src="/assets/images/go-first-view.png"/>
				<img class="pageElems" onclick="submitSearchForm('last');" title="上一页" alt="上一页" src="/assets/images/go-previous-view.png"/>			
				<img class="pageElems" onclick="submitSearchForm('next');" title="下一页" alt="下一页" src="/assets/images/go-next-view.png"/>
				<img class="pageElems" onclick="submitSearchForm('final');" title="尾页" alt="尾页" src="/assets/images/go-last-view.png"/>
			</div>
		</div>
	</div>
</div>
